package com.zx.session;

import com.zx.dao.Configuration;

/**
 * @ProjectName: myjdbc
 * @Package: com.zx.session
 * @ClassName: DefaultSqlSessionFactory
 * @Author: 1
 * @Description: 1
 * @Date: 2021/9/6 18:58
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }


    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }

}
